package zl.Service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zl.Dao.AnimalDao;
import zl.Entity.Animal;

import java.util.List;

@Service
public class AnimalService {

    @Autowired
    AnimalDao animalDao;

    public List<Animal> selectAll(){
        return animalDao.selectAll();
    }

    public void editUpdate(Animal animal){ animalDao.editUpdate(animal); }

    public void deleteById(String AId){ animalDao.deleteById(AId); }

    public Animal selectByAId(String AId){ return animalDao.selectByAId(AId); }

    public void save(Animal animal){ animalDao.save(animal); }
}
